// { "answers" : { "1" : [ "对" ] , "2" : [ "mc_answer2 (simp)" ], "3" : [ "ma_answer2 (simp)" , "ma_answer1 (simp)" , "ma_answer4 (simp)" ] }, "simple" : true }
import 'dart:convert';

BookQuizAnswerDto bookQuizAnswerDtoFromJson(String str) => BookQuizAnswerDto.fromJson(json.decode(str));
String bookQuizAnswerDtoToJson(BookQuizAnswerDto data) => json.encode(data.toJson());

class BookQuizAnswerDto {
    BookQuizAnswerDto({
        this.answers,
        this.simple,
    });

    Map<String, List<String>>? answers;
    bool? simple;

    factory BookQuizAnswerDto.fromJson(Map<String, dynamic> json) => BookQuizAnswerDto(
        answers:json["answers"]!=null? Map.from(json["answers"]).map((k, v) => MapEntry<String, List<String>>(k, List<String>.from(v.map((x) => x)))):null,
        simple: json["simple"],
    );

    Map<String, dynamic> toJson() => {
        "answers":answers!=null? Map.from(answers!).map((k, v) => MapEntry<String, List<String>>(k, List<String>.from(v.map((x) => x)))):null,
        "simple": simple,
    };
}
